package com.pd.builder;

/**
 * Created with IntelliJ IDEA.
 * User: 5
 * Date: 17-3-17
 * Time: 上午10:45
 */
public class CarBuilderImpl implements CarBuilder {
    private Car car;

    public CarBuilderImpl() {
        this.car = new Car();
    }

    public Car createCar() {
        return car;
    }

    @Override
    public void bulidDoor() {
        car.setDoors("剪刀门");
    }

    @Override
    public void bulidEnginee() {
        car.setEngins("v12双涡轮增压");
    }

    @Override
    public void bulidWheels() {
        car.setWheels("雪地防爆胎+全时四驱系统");
    }
}
